<?php
class View_Administration_Module_Add extends View_Administration_Module
{
	public function buildContent()
	{
		$words	= $this->words['module']['addModule'];

		$tabs	= new UI_HTML_Tabs();

		$view	= new View_Administration_Module_Add_Details;
		$tabs->addTab( $words['tabDetails'], $view->buildContent(), 'details' );
		$tabs->addTab( $words['tabFiles'], NULL, 'files' );
		$tabs->addTab( $words['tabRelations'], NULL, 'relations' );
		$tabs->addTab( $words['tabDatabase'], NULL, 'fildatabasees' );
		$tabs->addTab( $words['tabPages'], NULL, 'pages' );
		$tabs->setOption( 'fxAutoHeight', TRUE );
		$tabs->setOption( 'disabled', json_encode( array( 2, 3, 4, 5, 6 ) ) );
		$tabs->setOption( 'initial', 0 );
		$tabs->setOption( 'navClass', 'tabs-office2' );

		$ui	= array(
			'words'		=> $words,
			'tabs'		=> $tabs->buildTabs( 'editModule' ),
			'script'	=> $tabs->buildScript( '#editModule' ),
		);

		return $this->loadTemplate( 'administration.module.edit', $ui );
	}
}
?>